$(function(){
    // '写便签'按钮的hover
    $('#head .release').mouseenter(function(){
        $(this).css('border','1px solid #e41ed4');
    });
    $('#head .release').mouseleave(function(){
        $(this).css('border','none');
    });
    // 相恋日期的计算
    function loadDays(){
        var today = new Date();
        var start = new Date('2015-08-08');
        var mili_sec_span = today.getTime() - start.getTime()
        var day_span = Math.floor(mili_sec_span / (1000 * 3600 *24)) + 1
        $('#loveDays').html('相恋 '+day_span+' 天');
    };
    loadDays();
    
});